#!/usr/bin/env bash

dst_path="/data/local/tmp/"
#adb push benchmark_model_r2.3 lib ${dst_path}

models=(
#"mobilenet_v2_1.0_224.tflite"
#"mobilenet_v2_1.0_224_quant.tflite"
#"v3-large_224_1.0_float.tflite"
#"v3-large_224_1.0_uint8.tflite"
"inception_v3.tflite"
#"inception_v3_quant.tflite"
#"squeezenet.tflite"
#"nasnet_mobile.tflite"
#"mnasnet_1.0_224.tflite"
#"detect.tflite"
#"unet_mbv2_05_104pts.tflite"
#"AADB_HADB_MBV2_model_fp32.tflite"
#"model_normalize_object_scene_ps_20200519_f32.tflite"
)

for model in ${models[@]}
do
#    echo "cd ${dst_path} && ./benchmark_model_r2.3 --graph=${model} --num_threads=4 --num_runs=100" | adb shell
    echo "cd ${dst_path} && ./benchmark_model_r2.3 --graph=${model} --num_threads=4 --num_runs=100 --use_gpu=true --gpu_precision_loss_allowed=false --gpu_experimental_enable_quant=true --gpu_backend=cl" | adb shell
    echo "cd ${dst_path} && ./benchmark_model_r2.3 --graph=${model} --num_threads=4 --num_runs=100 --use_gpu=true --gpu_precision_loss_allowed=true --gpu_experimental_enable_quant=true --gpu_backend=cl" | adb shell
#    echo "cd ${dst_path} && ./benchmark_model_r2.3 --graph=${model} --num_threads=4 --num_runs=100 --use_gpu=true --gpu_precision_loss_allowed=false --gpu_experimental_enable_quant=true --gpu_backend=gl" | adb shell
#    echo "cd ${dst_path} && ./benchmark_model_r2.3 --graph=${model} --num_threads=4 --num_runs=100 --use_gpu=true --gpu_precision_loss_allowed=true --gpu_experimental_enable_quant=true --gpu_backend=gl" | adb shell
done
